﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Contact.aspx.cs" Inherits="Contact"  ValidateRequest="false"%>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript">
        function displaywait() {
            if (Page_ClientValidate() == true) {
                //$.blockUI({ message: '<div style="margin: 10px;"><div><center><b><font size="4">Đang gửi liên hệ...</b><center></font></div><div><center><img src="Images/Wait.gif"/></center> </div> </div>' });
                var panel = document.getElementById("hide");
                panel.setAttribute("style", "");
            }
        }
    </script>

    <script src="Scripts/tiny_mce/tiny_mce.js" type="text/javascript"></script>
    <script type="text/javascript">
        tinyMCE.init({
            // General options

            mode: "textareas",
            theme: "advanced",
            // Theme options
            theme_advanced_toolbar_location: "top",
            theme_advanced_toolbar_align: "left",
            theme_advanced_statusbar_location: "bottom",
            theme_advanced_resizing: true,
            // Skin options
            skin: "o2k7",
            skin_variant: "silver"

        });
        
        
    </script>   
 
    <table style="width: 100%">
        <tr>
            <td style="text-align: right; " colspan="3">
                <div class="titlebar">
                    
                </div>
            </td>
            
        </tr>
        <tr>
            <td style="text-align: right; width: 162px">
                Tiêu đề <span style="color: #FF0000">(*)</span> :
            </td>
            <td style="width: 466px">
                <asp:TextBox ID="txtTieude" runat="server" Width="300px" MaxLength="150"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtTieude" ErrorMessage="Nhập tiêu đề !"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="text-align: right; width: 162px; vertical-align: top;">
                Nội dung <span style="color: #FF0000">(*)</span> :</td>
            <td style="width: 466px">
                <asp:TextBox ID="txtNoidung" runat="server" Rows="6" TextMode="MultiLine" 
                    Width="450px"></asp:TextBox>
            </td>
            <td style="vertical-align: top">
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtNoidung" ErrorMessage="Nhập nội dung !"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="text-align: right; width: 162px">
                &nbsp;</td>
            <td style="width: 466px">
                <asp:LinkButton ID="btnGui" runat="server" CssClass="button" 
                    onclick="btnGui_Click" onclientclick="tinyMCE.triggerSave(false,true); displaywait();" 
                   ><span>Gửi</span></asp:LinkButton>
                <br />
                <div id="hide" style="display: none;"><img alt="wait" src="Images/Wait.gif"/></div>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="text-align: right; width: 162px">
                &nbsp;</td>
            <td style="width: 466px">
                <asp:Label ID="lbMessage" runat="server" ForeColor="Red"></asp:Label>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>

